<?php
class Zendvn_Validate_Regex extends Zend_Validate_Regex{

	public function isValid($value){
		$value = Zendvn_Filter_Filter::filterContent($value);
		
		$filter = new Zend_Filter();
		$filter->addFilter(new Zend_Filter_StringToLower(array('encoding'=>'utf-8')))
				->addFilter(new Zendvn_Filter_Utf8());
		$value = $filter->filter($value);
		
		return parent::isValid($value);
	}
}